home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
admin
/
linuxcon.000
/
linuxcon
/
linuxconf-1.6
/
main
/
Makefile
< prev
Wrap
Makefile
|
1996-08-04
|
2KB
|
64 lines
CURDIR=main
SBIN=/sbin
BIN=/bin
all: main
OBJS = linuxconf.o _dict.o
LDF = -g $(OPTDYNAMIC)
LIBS_PROJECT = ../askrunlevel/askrunlevel.a ../netconf/netconf.a \
../xconf/xconf.a ../translate/translate.a ../misc/misc.a \
../dialog/dialog.a
LIBS = $(LIBS_PROJECT) -lncurses
LOCAL_INSTALLLADR=localinstall_ladr
LOCAL_INSTALL=localinstall
LOCAL_CLEAN=localclean
localclean:
rm -f linuxconf
include ../rules.mak
proto:
proto -m0+ *.c
main: main.obt $(OBJS) $(LIBS_PROJECT)
$(GCC) $(LDF) -o linuxconf $< $(OBJS) $(LIBS)
localinstall: msg.eng
install -m 4755 -o root -g bin linuxconf $(BIN)/linuxconf
ln -sf $(BIN)/linuxconf $(BIN)/netconf
ln -sf $(BIN)/linuxconf $(BIN)/xconf
ln -sf $(BIN)/linuxconf $(BIN)/lpdconf
ln -sf $(BIN)/linuxconf $(BIN)/fsconf
ln -sf $(BIN)/linuxconf $(SBIN)/askrunlevel
ln -sf $(BIN)/linuxconf $(SBIN)/fixperm
ln -sf $(BIN)/linuxconf $(SBIN)/mailconf
ln -sf $(BIN)/linuxconf $(SBIN)/uucpconf
ln -sf $(BIN)/linuxconf $(SBIN)/dnsconf
ln -sf $(BIN)/linuxconf $(BIN)/userconf
install -m 444 -o root -g bin /tmp/linuxconf-msg-$(LINUXCONF_REV).eng $(HELP)
# Installation in the L.A.D.R directories
localinstall_ladr: msg.eng
install --strip -m 4755 -o root -g bin linuxconf $(BIN_LADR)/linuxconf
( cd $(BIN_LADR); \
ln -sf linuxconf netconf; \
ln -sf linuxconf xconf; \
ln -sf linuxconf fsconf; \
ln -sf linuxconf lpdconf; \
ln -sf /bin/linuxconf ../sbin/askrunlevel; \
ln -sf /bin/linuxconf ../sbin/fixperm; \
ln -sf /bin/linuxconf ../sbin/mailconf; \
ln -sf /bin/linuxconf ../sbin/uucpconf; \
ln -sf /bin/linuxconf ../sbin/dnsconf; \
ln -sf linuxconf userconf; \
ln -sf linuxconf passwd; \
ln -sf linuxconf hostname; \
ln -sf linuxconf domainname; \
)
install -m 444 -o root -g bin /tmp/linuxconf-msg-$(LINUXCONF_REV).eng $(HELP_LADR)
# Test program